<?php
$bargains = $mvc->getObject(BargainsService::BARGAINS);
?>
<div class="wrapSide">
	<div class="viewBox">
		<div class="cT"><em class="cL"></em><em class="cR"></em></div>
		<div class="cL">
			<div class="cR">
				<div class="bodyBox viewSList">
					<h2><a href="/view-bargains.html" title="_i18n{Bargains Catalog}">_i18n{Bargains Catalog}</a></h2>
					<ul>
<?php 				if (isset($bargains)&&$bargains!=NULL){
						foreach ($bargains as $key => $bargain){?>						
						<li <?php if($key==0) echo 'class="itemFirst"';?>>
							<a href="view-bargain.html?id=<?php echo $bargain[BargainsService::HASH]; ?>" title="<?php echo $bargain[BargainsService::BARGAIN_NAME];?>">
								<img width="52" height="52" src="<?php echo $bargain[UploadsService::PATH];?>" alt="<?php echo $bargain[BargainsService::BARGAIN_NAME];?>" />
								<span><?php echo $bargain[BargainsService::BARGAIN_NAME];?></span>
							</a>
						</li>
<?php }} ?>
					</ul>
				</div>
			</div>
		</div>
		<div class="cB"><em class="cL"></em><em class="cR"></em></div>
	</div>
</div>